Methods and systems for providing a preloader animation for image viewers

ABSTRACT

Methods and systems for providing a preloader animation for image viewers is provided. An example method includes receiving an image of an object, determining an edge gradient value for pixels of the image, and selecting pixels representative of the object that have a respective edge gradient value above a threshold. The example method also includes determining a model of the object including an approximate outline of the object and structures internal to the outline that are oriented based on the selected pixels being coupling points between the structures, and providing instructions to display the model in an incremental manner so as to render given structures of the model over time.

CROSS-REFERENCE TO RELATED APPLICATION

The present disclosure is a continuation of U.S. patent application Ser.No. 14/101,439 filed on Dec. 10, 2013, the entire contents of which areherein incorporated by reference.

BACKGROUND

In computer graphics, three-dimensional (3D) modeling involvesgeneration of a representation of a 3D surface of an object. Therepresentation may be referred to as a 3D object data model, and can berendered or displayed as a two-dimensional (2D) image via 3D renderingor displayed as a 3D image. 3D object data models represent a 3D objectusing a collection of points in 3D space, connected by various geometricentities such as triangles, lines, curved surfaces, etc. Varioustechniques exist for generating 3D object data models utilizing pointclouds and geometric shapes, for examples.

Being a collection of data, 3D models can be created by hand,algorithmically, or by scanning objects, for example. As an example, anartist may manually generate a 3D image of an object that can be used asthe 3D model. As another example, a given object may be scanned from anumber of different angles, and the scanned images can be combined togenerate the 3D image of the object. As still another example, an imageof an object may be used to generate a point cloud that can bealgorithmically processed to generate the 3D image.

3D object data models may include solid models that define a volume ofthe object, or may include shell or boundary models that represent asurface (e.g. the boundary) of the object. Because an appearance of anobject depends largely on an exterior of the object, boundaryrepresentations are common in computer graphics.

3D models are used in a wide variety of fields, and may be rendered anddisplayed using a number of different types of interfaces. Exampleinterfaces may provide functionality to enable interaction between auser and the 3D models.

SUMMARY

In one aspect, a method is provided that comprises receiving an image ofan object, determining an edge gradient value for pixels of the image,selecting pixels representative of the object that have a respectiveedge gradient value above a threshold, and determining, by a computingdevice, a model of the object including an approximate outline of theobject and structures internal to the outline that are oriented based onthe selected pixels being coupling points between the structures. Themethod also comprises providing instructions to display the model in anincremental manner so as to render given structures of the model overtime.

In another aspect, a non-transitory computer readable medium havingstored therein instructions, that when executed by a computing device,cause the computing device to perform functions is provided. Thefunctions comprise receiving an image of an object, determining an edgegradient value for pixels of the image, and selecting pixelsrepresentative of the object that have a respective edge gradient valueabove a threshold. The functions also comprise determining a model ofthe object including an approximate outline of the object and structuresinternal to the outline that are oriented based on the selected pixelsbeing coupling points between the structures, and providing instructionsto display the model in an incremental manner so as to render givenstructures of the model over time.

In yet another aspect, a device is provided comprising one or moreprocessors, and data storage configured to store instructions executableby the one or more processors to cause the device to receive an image ofan object, determine an edge gradient value for pixels of the image, andselect pixels representative of the object that have a respective edgegradient value above a threshold. The instructions may be furtherexecutable by the one or more processors to cause the device todetermine a model of the object including an approximate outline of theobject and structures internal to the outline that are oriented based onthe selected pixels being coupling points between the structures, andprovide instructions to display the model in an incremental manner so asto render given structures of the model over time.

In still another aspect, a system is provided that comprises a means forreceiving an image of an object, a means for determining an edgegradient value for pixels of the image, and a means for selecting pixelsrepresentative of the object that have a respective edge gradient valueabove a threshold. The system also comprises a means for determining amodel of the object including an approximate outline of the object andstructures internal to the outline that are oriented based on theselected pixels being coupling points between the structures, and ameans for providing instructions to display the model in an incrementalmanner so as to render given structures of the model over time.

The foregoing summary is illustrative only and is not intended to be inany way limiting. In addition to the illustrative aspects, embodiments,and features described above, further aspects, embodiments, and featureswill become apparent by reference to the figures and the followingdetailed description.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates an example system for object data modeling, inaccordance with one example.

FIG. 2 illustrates another example system for object data modeling, inaccordance with one example.

FIG. 3 shows an example 3D image viewer provided within a webpage.

FIG. 4 is a block diagram of an example method.

FIG. 5A is an example image that may be used to determine a model for apreloader.

FIG. 5B illustrates an example triangulation generated for a portion ofthe shoe in the image in FIG. 5A.

FIGS. 6A-6C illustrate an example display of a swivel viewer.

FIG. 7 is a functional block diagram illustrating an example computingdevice used in a computing system that is arranged in accordance with atleast some embodiments described herein.

FIG. 8 is a schematic illustrating a conceptual partial view of anexample computer program product that includes a computer program forexecuting a computer process on a computing device, arranged accordingto at least some embodiments presented herein.

DETAILED DESCRIPTION

Example methods and systems are described herein. It should beunderstood that the words “example” and “exemplary” are used herein tomean “serving as an example, instance, or illustration.” Any embodimentor feature described herein as being an “example” or “exemplary” is notnecessarily to be construed as preferred or advantageous over otherembodiments or features. In the following detailed description,reference is made to the accompanying figures, which form a partthereof. In the figures, similar symbols typically identify similarcomponents, unless context dictates otherwise. Other embodiments may beutilized, and other changes may be made, without departing from thescope of the subject matter presented herein.

The example embodiments described herein are not meant to be limiting.It will be readily understood that the aspects of the presentdisclosure, as generally described herein, and illustrated in thefigures, can be arranged, substituted, combined, separated, and designedin a wide variety of different configurations, all of which areexplicitly contemplated herein.

Within examples, methods and systems are provided for a preloaderanimation for image viewers. An example method includes receiving animage of an object, determining an edge gradient value for pixels of theimage, and selecting pixels representative of the object that have arespective edge gradient value above a threshold. The example methodalso includes determining a model of the object including an approximateoutline of the object and structures internal to the outline that areoriented based on the selected pixels being coupling points between thestructures, and providing instructions to display the model in anincremental manner so as to render given structures of the model overtime. The model of the object may be displayed during a download of afile, and a portion of the object displayed is indicative of a progressof the file download. The object may be representative of the file beingdownloaded so as to provide a preview to a user during the download, andthe preview further indicates the download progress.

Referring now to the figures, FIG. 1 illustrates an example system 100for object data modeling, in accordance with one example. The system 100includes an input source 102 coupled to a server 104 and a database 106.The server 104 is also shown coupled to the database 106 and an outputtarget 108. The system 100 may include more or fewer components, andeach of the input source 102, the server 104, the database 106, and theoutput target 108 may comprise multiple elements as well, or each of theinput source 102, the server 104, the database 106, and the outputtarget 108 may be interconnected as well. Thus, one or more of thedescribed functions of the system 100 may be divided up into additionalfunctional or physical components, or combined into fewer functional orphysical components. In some further examples, additional functionaland/or physical components may be added to the examples illustrated byFIG. 1.

Components of the system 100 may be coupled to or configured to becapable of communicating via a network (not shown), such as a local areanetwork (LAN), wide area network (WAN), wireless network (Wi-Fi), orInternet, for example. In addition, any of the components of the system100 may be coupled to each other using wired or wireless communications.For example, communication links between the input source 102 and theserver 104 may include wired connections, such as a serial or parallelbus, or wireless links, such as short-range wireless, IEEE 802.11 (IEEE802.11 may refer to IEEE 802.11-2007, IEEE 802.11n-2009, or any otherIEEE 802.11 revision), or other wireless based communication links.

The input source 102 may be any source from which a 3D object data modelmay be received. In some examples, 3D model acquisition (shape andappearance) may be achieved by working with venders or manufacturers toscan objects in 3D. For instance, structured light scanners may captureimages of an object and a shape of the object may be recovered usingmonochrome stereo cameras and a pattern projector. In other examples, ahigh-resolution SLR camera may be used to capture images for colortexture information. In still other examples, a raw computer-aideddrafting (CAD) set of drawings may be received for each object. Thus,the input source 102 may provide a 3D object data model, in variousforms, to the server 104. As one example, multiple scans of an objectmay be processed into a merged mesh and assets data model, and providedto the server 104 in that form.

The server 104 includes a model builder 110, an object data modelprocessor 112, a semantics and search index 114, and a graphics library116, a shader application 118, a materials application 120, and anobject data model renderer/viewer 122. Any of the components of theserver 104 may be coupled to each other. In addition, any components ofthe server 104 may alternatively be a separate component coupled to theserver 104. The server 104 may further include a processor and memoryincluding instructions executable by the processor to perform functionsof the components of the server 104, for example, and may take the formof a computing device.

The model builder 110 receives the mesh data set for each object fromthe input source 102, which may include a data set defining a densesurface mesh geometry, and may generate an animated model of the objectin 3D. For example, the model builder 110 may perform coherent textureunwrapping from the mesh surface, and determine textures of surfacesemulated from the geometry.

The object data model processor 112 may also receive the mesh data setfor each object from the input source 102 and generate display meshes.For instance, the scanned mesh images may be decimated (e.g., from 5million to 120,000 surfaces) utilizing texture-preserving decimation.Texture map generation can also be performed to determine color texturefor map rendering. Texture map generation may include using the meshdata sets H that have colors but no UV (coordinate system of a 2Dtexture space) unwrapping to generate a mesh D with UV unwrapping but nocolors. As an example, for a single output texture pixel of an imageprocessing may include, for a given point in UV determine a triangle inthe mesh's UV mapping D, and using triangle-local coordinates, move toan associated 3D point on the mesh. A bidirectional ray may be castalong the triangle's normal to intersect with the mesh H, and color,normal and displacement may be used for an output. To generate an entiretexture image, each pixel in the image can be processed.

In some examples, the model builder 110 or the object data modelprocessor 112 may output a 3D object data model of an object thatincludes one file with a combination of all data needed to render a 3Dimage of the object. In other examples, the model builder 110 or theobject data model processor 112 may output a 3D object data model in theform of multiple files so that the 3D object data model file is dividedinto smaller parts.

The semantics and search index 114 may receive captured images orprocessed images that have been decimated and compressed, and mayperform texture resampling and also shape-based indexing. For example,for each object, the semantics and search index 114 may index or labelcomponents of the images (e.g., per pixel) as having a certain texture,color, shape, geometry, attribute, etc. The semantics and search index114 may receive the 3D object data model file or the files comprisingthe 3D object data model from the model builder 110 or the object datamodel processor 112, and may be configured to label portions of the fileor each file individually with identifiers related to attributes of thefile.

In some examples, the semantics and search index 114 may be configuredto provide annotations for aspects of the 3D object data models. Forinstance, an annotation may be provided to label or index aspects ofcolor, texture, shape, appearance, description, function, etc., of anaspect of a 3D object data model. Annotations may be used to label anyaspect of an image or 3D object data model, or to provide any type ofinformation. Annotations may be performed manually or automatically. Inexamples herein, an annotated template of an object in a givenclassification or category may be generated that includes annotations,and the template may be applied to all objects in the givenclassification or category to apply the annotations to all objects.

The graphics library 116 may include a WebGL or OpenGL mesh compressionto reduce a mesh file size, for example. The graphics library 116 mayprovide the 3D object data model in a form for display on a browser, forexample. In some examples, a 3D object data model viewer may be used todisplay images of the 3D objects data models. The 3D object data modelviewer may be implemented using WebGL within a web browser, or OpenGL,for example.

The shader application 118 may be configured to apply a shader toportions of the 3D object data model file or to files of the 3D objectdata model according to the indexes of the file (as labeled by thesemantics and search index 114) to generate a 3D image. The shaderapplication 118 may be executed to apply a shader from a number ofshaders according to the indexes of the file. The shader may includeinformation related to texture, color, appearance, etc., of a portion ofthe 3D image.

In one example, the shader application 118 may be executed to render animage with shading attributes as defined by indexes of the files. Forexample, objects with multiple surfaces may have different attributesfor each surface, and the shader application 118 may be executed torender each surface accordingly.

The materials application 120 may be configured to apply a material toportions of the 3D object data model file or to files of the 3D objectdata model according to the indexes of the file (as labeled by thesemantics and search index 114) to generate a 3D image. The materialsapplication 120 may be executed to apply a material from a number ofmaterials according to the indexes of the file. The materialsapplication may apply any material, such as leather, metal, wood, etc.,so as to render an appearance of a portion of the 3D image.

In one example, the materials application 120 may access a database thatincludes information regarding a number of reference materials (e.g.,brass, fur, leather), and objects with multiple materials may beseparated into distinct portions so that the materials application 120can be executed to render the separate distinct portions. As an example,a hood on a car may include a hood ornament, and the hood may be paintedand the ornament may be chrome. The materials application 120 and theshader application 118 can be executed to identify two separatematerials and render each material with an appropriate shade.

The object data model renderer/viewer 122 may receive the 3D object datamodel file or files and execute the shader application 118 and thematerials application 120 to render a 3D image.

The database 106 may store all data sets for a 3D object data model inany number of various forms from raw data captured to processed data fordisplay.

The output target 108 may include a number of different targets, such asa webpage on the Internet, a search engine, a database, a computingdevice, etc. The output target 108 may include a 3D object data modelviewer that enables product advertisements or product searches based onthe 3D object data model.

In examples herein, the system 100 may be used to acquire data of anobject, process the data to generate a 3D object data model, and renderthe 3D object data model for display.

FIG. 2 illustrates another example system 200 for object data modeling,in accordance with one example. The system 200 includes the input source102 coupled to the server 104, which is coupled to a client device 124.The input source 102 and the server 104 may be as described in FIG. 1.The client device 124 may receive outputs from any of the components ofthe server 124, and may be configured to render a 3D image.

The client device 124 includes an object data model renderer/viewer 126,a shader application 128, and a materials application 130. The objectdata model renderer/viewer 126, the shader application 128, and thematerials application 130 may all be configured as described withrespect to the object data model renderer/viewer 122, the materialsapplication 120, and the shader application 118 of the server 104 asdescribed with respect to FIG. 1.

In some examples, the client device 124 may receive the 3D object datamodel file or files from the server 104 and render a 3D image of theobject by executing the shader application 128 and the materialsapplication 130. When executing the shader application 128 and thematerials application 130, the client device 124 may access separatedatabases to retrieve appropriate shader and material information toapply to the image, access the server 104 to receive appropriate shaderand material information from the shader application 118 and thematerials application 120, or may store information locally regardingthe appropriate shader and material information to apply.

In some examples, the client device 124 may receive the 3D object datamodel file or files from the server 104 and render a 3D image of theobject. In other examples, the server 104 may render a 3D image of theobject and stream the 3D image to the client device 124 for display.

As described, in some examples, the 3D object data model may includevarious forms of data, such as raw image data captured, mesh data,processed data, etc. Data of the 3D object data model may be encoded andcompressed so as to store information related to 3D geometry of anobject associated with information related to appearance of the objectfor transmission and display within a web browser or application on adevice.

In one example, data of the 3D object data model may be compressed byinitially encoding a triangle mesh representing the 3D object as a listincluding a plurality of vertices and a plurality of indices. Eachvertex in the list may have several arbitrary parameters associated withthe vertex, including, but not limited to, position, surface normal, andtexture coordinates. The triangle indices may be stored in a 16-bitunsigned integer format and vertex attributes may be stored in a 32-bitfloating point format. The 32-bit floating point format vertexattributes may be reduced to 15-bits. In instances in which compresseddata is for a version of a web browser or application that does not havethe ability to decompress dictionary encoded data, a delta compressionmay be used to store differences between the triangle indices and vertexattributes, either in an array of structures layout or a transposedlayout. After delta compression, post-delta data may be ZigZag encoded(e.g., using open-source Protocol Buffer library available from GoogleInc.). Encoding may follow the format ZigZag(x): (x<<1)^(x>>15) with acorresponding decoding (during decompression) to follow the formatUnZigZag(x): (x>>1)^(−x & 1)). ZigZag encoding may be followed bymulti-byte character encoding using UTF-8 encoding. Finally, the UTF-8encoded data may be compressed using GNU Gzip or bzip2 to generate acompressed 3D object data model file.

The compressed copy of the 3D object data model file may be stored in adatabase, such as the database 106 in FIG. 1, in the server 104, or onthe client device 124, for example. In some examples, the compressed 3Dobject data model file may be provided by the server 104 to the clientdevice 124 in response to a request from the client device 124. If usinga web browser to view the 3D object data model file, the client device124 may decompress the compressed 3D object data model file according toJava instructions provided in the object browser web page. A local copyof the object browser web page and a local copy of the uncompressed,searchable data of the 3D object data model file can be stored in localmemory of the client device 124. The client device 124 may displayexemplary screenshots of an initial default view of a 3D object, basedon the searchable data of the 3D object data model file loaded in theweb browser.

In some examples, the 3D object data file includes information as togeometry of an object sorted by material and divided into portions to beloaded as fragments and reassembled in portions by the client device. Asone example, for a mobile phone comprising multiple parts, each part maybe rendered using a separate or distinct shader for each material. Thus,the 3D object data file may be divided into multiple portions andcompressed as described above to retain all portions. The client devicemay receive the compressed 3D object data file, decompress the file, andreassemble the portions of the object one-by-one by loading eachfragment of the file, streaming file requests for each shader, andreassembling an image of the object.

Examples described herein relate to images of an object that aredisplayed in a 3D image viewer used to view a 3D image of the object,such as the object data model renderer/viewer 122 and the object datamodel renderer/viewer 126 in FIGS. 1 and 2. The 3D image viewer may beprovided by a webpage loaded by a computing device, and the computingdevice may receive images while loading the webpage or upon executing arequest to load the webpage.

FIG. 3 shows an example 3D image viewer 300 provided within a webpage302. The webpage 302 may include miscellaneous information and contentsuch as textual content, graphics, hyperlinks, etc. The 3D image viewer300 may be configured to render a 3D object data model of an object soas to generate a 3D image 304. In some examples, the 3D image viewer 300may be configured to receive images, videos, and or other informationassociated with rendering the 3D object data model from a server toallow JavaScript or other scripting languages to generate the 3D image304 of the object within the 3D image viewer.

In some examples, the 3D image viewer 300 may be an interactive,real-time 3D image viewer, and the information associated with renderingthe 3D object data model may be commands or function calls associatedwith WebGL, OpenGL ES, or other graphics software for renderingreal-time, interactive 3D graphics. In other examples, the 3D imageviewer 300 may be a swivel viewer.

The 3D image 304 may be an interactive 3D graphic with which a user mayinteract in the 3D image viewer 300, and may be one image within a datafile of the 3D object data model. For example, a user may pan, orbit, orzoom the 3D image 304 via an input device or method. As such, the 3Dimage viewer 300 may include a zooming tool 306 such that a user may beable to zoom in or out to focus on features or components of the 3Dimage 304 displayed in the 3D image viewer 300. In other instances, auser may zoom on components of the object by scrolling a wheel of amouse or providing a gesture on a touchscreen. Other tools,capabilities, and functionalities are also possible.

In some examples, the parameters for the 3D image viewer 300 and/or the3D object data model may be input with reference to an applicationprogramming interface (API) (e.g., HTML5 video API). As such, acomputing device displaying the webpage may load one or more librariesassociated with the API to provide functionality. In some embodiments,HTML5 video encoding may be used.

Markup language defining the webpage, such as HTML, HTML5, and XML,among others, may include a portion of code associated with the 3D imageviewer to be embedded within the webpage. For example, the 3D imageviewer 300 may be embedded within an inline frame (iframe) of HMTLlanguage thus sandboxing the 3D image viewer 300 from the webpage andthereby enabling the 3D image viewer 300 to be modified on the webpagewithout requiring the entire webpage to be updated, so as to decreaselatency for the webpage.

In some examples, the embedded language may define customizationparameters for the 3D image viewer 300 such as one or more embeddablebuttons (such as buttons within the 3D image viewer that a user mayclick or select to cause a function). For instance, clicking anembeddable button may cause a 3D image within the 3D image viewer 300 tospin or rotate. In another instance, an embeddable button may cause a 3Dimage to snap or transition to a predetermined camera position or objectpose. In yet another instance, clicking an embeddable button may causethe 3D image viewer 300 to zoom in on or zoom out from the 3D image. Inother examples, the embedded language may define customizationparameters for a 3D object data model to be rendered by the 3D imageviewer 300. For instance, parameters may define a 3D pose, a cameraposition, a level of zoom, an animation sequence, an annotation for acomponent of the 3D object data model, a shader, a mesh resolution orsize, etc., for the 3D object data model.

In some examples, the embedded language may describe when to load orrender a 3D object data model within the 3D image viewer 300. Forexample, the 3D object data model may be rendered when the webpage isloaded. In one instance, a still two-dimensional image may be loadedinitially as a placeholder/substitute for the 3D image while the 3Dobject data model loads. In some instances, the still image may take afraction of a second to load, and may be replaced once the 3D objectdata model has loaded (e.g., after 3 seconds).

The still image may be an image that is rendered by a server based onthe parameters associated with rendering the 3D object data model andsent to the webpage. For instance, if embedded language defines abackground, level of zoom, and camera position for the 3D object datamodel, a 3D image of the 3D object data model having the appropriatebackground, level of zoom, and camera position may be rendered from the3D object data model in the server and sent to the webpage of the clientdevice. In other examples, the 3D object data model may be rendered whena user clicks on the embedded viewer or when a user scrolls down awebpage such that the embedded viewer is visible.

In some examples, the location of the 3D image viewer 300 may be definedwithin the embedded language by reserving a space in a web browser'sdocument object model (DOM). The embedded language may also includeinstructions for controlling interactions with the 3D image. Forexample, JavaScript may define events based on user interface eventssuch as a click, double-click, mouse up, mouse down, etc. over and/ornear the 3D image. In one instance, clicking and dragging may enable auser to rotate the 3D image. It is also contemplated that the 3D imagemay be provided on other interfaces (e.g., touchscreen interfaces) andmay be controlled with respect to input methods of the respectiveinterfaces. Responses to any number of functionalities of the embedded3D image viewer may also be defined within the embedded language.

In further examples, the 3D image viewer 300 may be provided as astandalone viewer outside of a webpage, and may be executed separatelyfrom the webpage 302.

Within examples, a 3D object data model may be large in size, andloading a 3D object data model into the 3D image viewer can result in atime consuming process. A progress bar or spinning icon can be providedto notify a user that the 3D object data model is loading. Withinexamples herein, a preloader is provided that may be displayed toresemble the object/scene whose swivel or 3D object data model is beingloaded to provide a preview of the 3D object data model. In addition, anapproximate loading progress can be conveyed via the preloader withoutdisplaying percentage of assets loaded by an amount of data displayed inthe preloader. Data displayed in the preloader can be derived from dataof the 3D object data model.

FIG. 4 is a block diagram of an example method. Method 400 shown in FIG.4 presents an embodiment of a method that could be used by the systems100 or 200 of FIGS. 1-2 or components of the systems 100 or 200, forexample. Method 400 may include one or more operations, functions, oractions as illustrated by one or more of blocks 402-410. Although theblocks are illustrated in a sequential order, these blocks may also beperformed in parallel, and/or in a different order than those describedherein. Also, the various blocks may be combined into fewer blocks,divided into additional blocks, and/or removed based upon the desiredimplementation.

In addition, for the method 400 and other processes and methodsdisclosed herein, the block diagram shows functionality and operation ofone possible implementation of present embodiments. In this regard, eachblock may represent a module, a segment, or a portion of program code,which includes one or more instructions executable by a processor orcomputing device for implementing specific logical functions or steps inthe process. The program code may be stored on any type of computerreadable medium, for example, such as a storage device including a diskor hard drive. The computer readable medium may include non-transitorycomputer readable medium, for example, such as computer-readable mediathat stores data for short periods of time like register memory,processor cache and Random Access Memory (RAM). The computer readablemedium may also include non-transitory media, such as secondary orpersistent long term storage, like read only memory (ROM), optical ormagnetic disks, compact-disc read only memory (CD-ROM), for example. Thecomputer readable media may also be any other volatile or non-volatilestorage systems. The computer readable medium may be considered acomputer readable storage medium, for example, or a tangible storagedevice, and may be distinguished from transitory mediums.

In addition, for the method 400 and other processes and methodsdisclosed herein, each block in FIG. 4 may represent circuitry that iswired to perform the specific logical functions in the process.

Initially, at block 402, the method 400 includes receiving an image ofan object. The image of the object may be received in a number ofmanners. In one example, the image is used as a display for a viewerduring at a time when the viewer is downloading a 3D object data model.In this example, a computing device may initiate download of the 3Dobject data model, and select as the image, a first image or frame ofthe 3D object data model (e.g., the poster image). The poster image maybe the first frame of the 3D object data model, or other frames withinan initial portion of the 3D object data model being downloaded.

In other examples, the computing device may initiate download of a 3Dobject data model for a given object, and may retrieve a general imageof an image within a category of objects that relates to the 3D objectdata model from a search engine. As a specific example, the 3D objectdata model may be of a specific shoe, and the computing device mayretrieve an image of a general shoe from the Internet for use as apreloader.

At block 404, the method 400 includes determining an edge gradient valuefor pixels of the image. In one example, an edge detector may processthe image to create a gradient bitmap. A gradient value can beassociated with each pixel, and a higher gradient value represents amore hard edge. An example edge detector may perform discretedifferentiations to compute an approximation of the gradient of an imageintensity function. At each point in the image, a result of the detectoris either a corresponding gradient vector or a norm of this vector. Anexample edge detector includes the Sobel operator, which is based onconvolving the image with a small, separable, and integer valued filterin horizontal and vertical directions. Edges detected in the image maycorrespond to variations in color within pixels (e.g., as color changes,the gradient value increases).

At block 406, the method 400 includes selecting pixels representative ofthe object that have a respective edge gradient value above a threshold.For example, to select pixels representative of the object versus pixelsrepresentative of other components or background of the image, the imagemay include the object and a processed background in which the processedbackground includes pixels of a common color. Thus, all pixels havingthe common color can be determined, and pixels in the image other thanthe pixels having the common color can be sampled and selected. Theimage may have been processed to flatten the image so as to reducepixels other than the object to be white in instances in which the imageis taken from a 3D object data model. Thus, in that example, a colorcheck can be performed to determine if a pixel is inside or outside theobject displayed in the image (e.g., when sampling points in the imageby color, non-white pixels are pixels of object).

In other examples, pixel selection can be performed by identifyingobjects in a foreground and performing a classification of foregroundand background pixels. Foreground classification can be used bycomparing images with training images in which objects have beenidentified to identify the objects in the image. Other foregroundclassifications exist as well to segment a foreground object frombackground information based on color changes in the image, geometricchanges of shapes in the images, or other illustrative changes as well.

Next to determine those selected pixels that have edge gradient valuesabove a threshold, each of the pixels may have an associated gradientvalue, and a filtering can be performed to select those above a certaingradient value. It may be desired to select more pixels on edges of theobject (e.g., to outline the object) and less pixels on other areas ofthe object. A random selection of pixels that fall inside the object,weighted by gradient values of the pixels, can be performed. Thus, it isdesirable to select pixels having higher gradient values than those withlower gradient values (e.g., non-edge pixels). Depending on a scale usedfor the gradient determination, if the values are scaled to be in therange 0 to 255, a threshold may be about half (e.g., 128) to beselected. In any event, whatever scale may be used for the gradientvalues, a threshold may be a halfway point in the scale, for example.The threshold may be set higher, such as to be 60%, 75%, or 90% of thescale as well.

At block 408, the method 400 includes determining, by a computingdevice, a model of the object including an approximate outline of theobject and structures internal to the outline that are oriented based onthe selected pixels being coupling points between the structures. Withinexamples, when pixels having high gradient values are chosen, thosepixels likely represent edges of the object and can be used as anoutline of the object. The object may then be partitioned into a numberof internal structures, and the structures internal to the outline mayinclude circles, cylinders, polygons, or other shapes.

In one example, the structures include triangles, the model of theobject can be determined using a Delaunay triangulation of the objectbased on the selected pixels being vertices of the triangles. An endresult may be to build a triangulation of the object that gives aneffect or an illusion of building a mesh of the object. Thus, using edgeweights to select pixels as vertices for the Delaunay triangulationgives the illusion of the mesh having an actual shape of the object. ADelaunay triangulation for a set P of points in a plane is atriangulation DT(P) such that no point in P is inside the circumcircleof any triangle in DT(P). Delaunay triangulations maximize a minimumangle of all angles of the triangles in the triangulation. For a set ofpoints on a same line, there is no Delaunay triangulation (the notion oftriangulation is degenerate for this case). For four or more points on asame circle (e.g., the vertices of a rectangle) the Delaunaytriangulation is not unique and each of the two possible triangulationsthat split the quadrangle into two triangles satisfies the Delaunaycondition, i.e., the requirement that the circumcircles of all triangleshave empty interiors.

In other examples, the model of the object may be determined byselecting pixels having the highest gradient values as an outline, andfilling in the outline with any type of internal structures partitionedbased on the pixels being coupling points of the structures. Instead ofshowing a mesh of triangles for the object, the object can be populatedwith circles of various shapes or sizes, or with various shapes of anysize using the selected pixels as vertices of those shapes or centers ofthe shapes (e.g., centers of the circles). Any number of combination oftype and size of internal structures can be used to create the model.

In still other examples, the model of the object may be determined usinga Voronoi diagram (similar to a Delaunay triangulation), or still otherknown structural generation techniques to fill an area.

Additional visual components of the model may be determined as well,such as determining colors of the internal structures based on a colorof the pixel used for the coupling points between the structures orbased on a combination of respective colors of the selected pixels ofcoupling points between the structures. A size of given structures canbe determined based on an apparent distance of a portion of the objectrepresented by the selected pixel to a viewing location (e.g., portionof the object farther away can be represented by smaller internalstructures when depth information is known).

At block 410, the method 400 includes providing instructions to displaythe model in an incremental manner so as to render given structures ofthe model over time. Thus, within examples, the model is displayed toillustrate portions of the object in the image at a time to create anillusion that the object is being constructed. The instructions may beprovided to a preloader for an image viewer and may include a set ofcolored vertices, a set of Delaunay triangles for those vertices, andtriangle edge colors, as well as instructions on how to render thepreloader animation so that it appears like geometry being constructedby actually triangulation of the original image. Over time, fading canbe provided to eventually present a rendering of the image.

The instructions to display the model may include configurableparameters such as a time to display vertices, a time to displaytriangles, a time to fill triangles, a time to reveal the image, andtime to fade the animation. Other parameters may include rendering thegiven structures of the model in focus based on an apparent distance ofa portion of the object represented by the selected pixel to a viewinglocation, such that those closer are rendered in focus and those furtheraway are rendered out of focus. For each parameter, there is a duration,as well as a number of structures and speed to reveal. Parameters may bedetermined based on a type of the object. A final display may appear asa same size as the image so that it looks like the object being createdand generated. The original image is eventually loaded and seamlesslyfades in.

The parameters may control how fast each display in the animationoccurs. Within examples, the method 400 may be performed to render themodel over time when downloading a 3D object data model of the object,which includes geometry and texture information of the object fordisplay in an image viewer. Thus, while the 3D object data model isbeing downloaded, which can take some time due to large file size, themodel may be rendered as a preloader to the user. A total duration ofthe animation of the preloaded can be associated to a time to downloadthe 3D object data model. A fraction of preloader being rendereddictates a progress of the download, thus giving a user a rough idea ofthe download progress.

The animation occurs in an order in which the configurable parametersabove are specified, such as to display vertices incrementally, displaycolored triangles incrementally, fill the triangles incrementally,reveal a part of the actual image under each triangle incrementally, andfade out the animation layer to display the actual image.

In some examples, the pixels can be sorted in an order based on verticalposition of the pixels in the image, and instructions can be provided todisplay the model in the incremental manner so as to render the givenstructures of the model over time based on the vertical position from abottom to a top of the model. This may create an illusion that theobject is being constructed in the viewer.

Thus, within examples, the method 400 may be performed after initiatinga download of a three-dimensional (3D) object data model of the object,and a first frame of the 3D object data model can be selected as theimage of the object so as to render a display resembling the object ofthe 3D object data model being downloaded and provide a preview of the3D object data model. The model of the object can be determined whiledownloading the 3D object data model, the preloader can provide theincremental display to provide a representation of the object beingconstructed over time. A duration of display of the model is about equalto an amount of time to download the 3D object data model and a portionof the model displayed is indicative of a progress of the download(e.g., more of the model being displayed indicates more of the filebeing downloaded).

In other examples, the model may be pre-computed and loaded as aseparate file to the image viewer before downloading the 3D object datamodel. A small amount of data (e.g., an image) is enough to generate thepreloader versus the entirety of the 3D object data model. The preloadermay provide an alternative to a progress bar or a spinner icon toindicate a download is in progress.

FIG. 5A is an example image that may be used to determine a model for apreloader. The image includes a shoe, and the background has beenflattened out as white pixels. FIG. 5B illustrates a triangulationgenerated for a portion of the shoe. Vertices of the triangles arechosen based on pixels in the shoe having high edge gradient values. Inthe example in FIG. 5B, the triangulation represents a front edge of theshoe. An entirety of the shoe may be represented by the triangulation asshown in FIG. 5B.

FIGS. 6A-6C illustrate an example display of a swivel viewer 600. Itshould be understood that the functions performed with respect to theswivel viewer 600 may be performed, additionally or alternatively, byanother type of 3D image viewer, such as a real-time, interactive 3Dimage viewer, that is configured similarly to or differently from theswivel viewer 600.

The swivel viewer 600 may be configured to render a 3D object data modelby displaying images of an object captured from a multiple respectiveviews of the object. In some examples, a user may click or otherwiseinput a modification to the swivel viewer to cause other images of theobject to be displayed. For instance, the other images may be images ofthe object rendered from separate positions around an axis of rotationof the object. In one example, a user may click and drag to the left orright to cause the image displayed by the swivel viewer 600 to change.In another example, a user may perform a gesture (e.g., a swipe) on atouchscreen interface to cause the image displayed by the swivel viewer600 to be replaced by a different image.

During download of the 3D object data model, a first few images may ofthe 3D object data model may be selected and provided as multiplesnapshots 602 that a user may select to cause those images to bedisplayed by the swivel viewer 600 to rotate to a given image. Forinstance, the snapshots 602 may include a perspective, front, right,back, left, top, and bottom view images.

In one example implementation, a 3D object data model may includehundreds of images to be rendered by the swivel viewer 600 that aregenerated from hundreds of predetermined positions covering 360 degreesaround the object. The images may, for instance, be captured at 5 degreeincrements (i.e., 0 degrees, 5 degrees, 10 degrees . . . 355 degrees).During download of the 3D object data model, the method 400 may beperformed to determine a model of the object to be displayed as apreloader.

FIG. 6A illustrates a portion of a model of the shoe being rendered. Asshown, the model is rendered from bottom to top to illustrate the objectbeing constructed. In this example, the model includes an outline of theshoe filled with triangles coupled by selected pixels as vertices.Animation of the preloader is generated to first display the trianglesat the bottom of the shoe, display other portions of the model, e.g.,vertices of a top portion of the shoe. An amount of the model display isindicative of a progress of the download of the 3D object data model. Inthe example shown in FIG. 6A, about 25% of the model is shown, and thus,the file download may be about 25% complete.

FIG. 6B illustrates another portion of the model of the shoe beingrendered. In FIG. 6B, triangles at a bottom of the shoe have been filledin, and the triangles at the top of the shoe have been drawn. The modelin FIG. 6B may be about 50% rendered, and thus, at this point the filedownload may be about 50% complete.

FIG. 6C illustrates another portion of the model of the shoe beingrendered. In FIG. 6C, all triangles have been filled in, and the modelmay now be complete. Thus, the file download may be complete at thistime, and the swivel viewer 600 may subsequently fade the model out todisplay the image of the object (e.g., a first or poster image of thedownloaded 3D object data model).

Within the examples shown in FIGS. 6A-6C, the model generated anddisplayed includes a portion representing a shadow of the object (e.g.,a shadow of the shoe represented by the triangular mesh underneath theshoe). In other examples, the shadow may be removed, and pixelsrepresentative of only the object can be used for generation of themodel for the preloader.

FIG. 7 is a functional block diagram illustrating an example computingdevice 700 used in a computing system that is arranged in accordancewith at least some embodiments described herein. The computing device700 may be a personal computer, mobile device, cellular phone,touch-sensitive wristwatch, tablet computer, video game system, and maybe implemented to provide a system for viewing dynamic high-resolution3D imagery over a network, as described above. In a basic configuration702, computing device 700 may typically include one or more processors710 and system memory 720. A memory bus 730 can be used forcommunicating between the processor 710 and the system memory 720.Depending on the desired configuration, processor 710 can be of any typeincluding but not limited to a microprocessor (μP), a microcontroller(μC), a digital signal processor (DSP), or any combination thereof. Amemory controller 715 can also be used with the processor 710, or insome implementations, the memory controller 715 can be an internal partof the processor 710.

Depending on the desired configuration, the system memory 720 can be ofany type including but not limited to volatile memory (such as RAM),non-volatile memory (such as ROM, flash memory, etc.) or any combinationthereof. System memory 720 may include one or more applications 722, andprogram data 724. Application 722 may include a 3D algorithm 723 that isarranged to provide inputs to the electronic circuits, in accordancewith the present disclosure. Program data 724 may include 3D information725 that could be directed to any number of types of data. In someexample embodiments, application 722 can be arranged to operate withprogram data 724 on an operating system.

Computing device 700 can have additional features or functionality, andadditional interfaces to facilitate communications between the basicconfiguration 702 and any devices and interfaces. For example, datastorage devices 740 can be provided including removable storage devices742, non-removable storage devices 744, or a combination thereof.Examples of removable storage and non-removable storage devices includemagnetic disk devices such as flexible disk drives and hard-disk drives(HDD), optical disk drives such as compact disk (CD) drives or digitalversatile disk (DVD) drives, solid state drives (SSD), and tape drivesto name a few. Computer storage media can include volatile andnonvolatile, non-transitory, removable and non-removable mediaimplemented in any method or technology for storage of information, suchas computer readable instructions, data structures, program modules, orother data.

System memory 720 and storage devices 740 are examples of computerstorage media. Computer storage media includes, but is not limited to,RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM,digital versatile disks (DVD) or other optical storage, magneticcassettes, magnetic tape, magnetic disk storage or other magneticstorage devices, or any other medium which can be used to store thedesired information and which can be accessed by computing device 700.Any such computer storage media can be part of device 700.

Computing device 700 can also include output interfaces 750 that mayinclude a graphics processing unit 752, which can be configured tocommunicate to various external devices such as display devices 760 orspeakers via one or more A/V ports 754 or a communication interface 770.The communication interface 770 may include a network controller 772,which can be arranged to facilitate communications with one or moreother computing devices 780 over a network communication via one or morecommunication ports 774. The communication connection is one example ofa communication media. Communication media may be embodied by computerreadable instructions, data structures, program modules, or other datain a modulated data signal, such as a carrier wave or other transportmechanism, and includes any information delivery media. A modulated datasignal can be a signal that has one or more of its characteristics setor changed in such a manner as to encode information in the signal. Byway of example, and not limitation, communication media can includewired media such as a wired network or direct-wired connection, andwireless media such as acoustic, radio frequency (RF), infrared (IR) andother wireless media.

Computing device 700 can be implemented as a portion of a small-formfactor portable (or mobile) electronic device such as a cell phone, apersonal data assistant (PDA), a personal media player device, awireless web-watch device, a personal headset device, an applicationspecific device, or a hybrid device that include any of the abovefunctions. Computing device 700 can also be implemented as a personalcomputer including both laptop computer and non-laptop computerconfigurations.

In some embodiments, the disclosed methods may be implemented ascomputer program instructions encoded on a non-transitorycomputer-readable storage media in a machine-readable format, or onother non-transitory media or articles of manufacture. FIG. 8 is aschematic illustrating a conceptual partial view of an example computerprogram product 800 that includes a computer program for executing acomputer process on a computing device, arranged according to at leastsome embodiments presented herein.

In one embodiment, the example computer program product 800 is providedusing a signal bearing medium 801. The signal bearing medium 801 mayinclude one or more programming instructions 802 that, when executed byone or more processors may provide functionality or portions of thefunctionality described above with respect to FIGS. 1-7. In someexamples, the signal bearing medium 801 may encompass acomputer-readable medium 803, such as, but not limited to, a hard diskdrive, a Compact Disc (CD), a Digital Video Disk (DVD), a digital tape,memory, etc. In some implementations, the signal bearing medium 801 mayencompass a computer recordable medium 804, such as, but not limited to,memory, read/write (R/W) CDs, R/W DVDs, etc. In some implementations,the signal bearing medium 801 may encompass a communications medium 805,such as, but not limited to, a digital and/or an analog communicationmedium (e.g., a fiber optic cable, a waveguide, a wired communicationslink, a wireless communication link, etc.). Thus, for example, thesignal bearing medium 801 may be conveyed by a wireless form of thecommunications medium 805 (e.g., a wireless communications mediumconforming with the IEEE 802.11 standard or other transmissionprotocol).

The one or more programming instructions 802 may be, for example,computer executable and/or logic implemented instructions. In someexamples, a computing device such as the computing device 700 of FIG. 7may be configured to provide various operations, functions, or actionsin response to the programming instructions 802 conveyed to thecomputing device 700 by one or more of the computer readable medium 803,the computer recordable medium 804, and/or the communications medium805.

It should be understood that arrangements described herein are forpurposes of example only. As such, those skilled in the art willappreciate that other arrangements and other elements (e.g. machines,interfaces, functions, orders, and groupings of functions, etc.) can beused instead, and some elements may be omitted altogether according tothe desired results. Further, many of the elements that are describedare functional entities that may be implemented as discrete ordistributed components or in conjunction with other components, in anysuitable combination and location.

While various aspects and embodiments have been disclosed herein, otheraspects and embodiments will be apparent to those skilled in the art.The various aspects and embodiments disclosed herein are for purposes ofillustration and are not intended to be limiting, with the true scopebeing indicated by the following claims, along with the full scope ofequivalents to which such claims are entitled. It is also to beunderstood that the terminology used herein is for the purpose ofdescribing particular embodiments only, and is not intended to belimiting.

What is claimed is:
 1. A method comprising: downloading athree-dimensional (3D) object data model of an object; selecting a givenframe of the 3D object data model as an image of the object;determining, by a computing device, a model of the object including anapproximate outline of the object and structures internal to theoutline; providing instructions to display the model in an incrementalmanner during the downloading of the 3D object data model so as torender given structures of the model over time during the downloading ofthe 3D object data model, wherein a duration of display of the model isabout an amount of time to download the 3D object data model and aportion of the model displayed is indicative of a progress of thedownload of the 3D object data model, and wherein the display of themodel incrementally resembles geometry and texture attributes of therendered given structures to represent the image of the object in thegiven frame.
 2. The method of claim 1, wherein the structures internalto the outline include triangles, and wherein determining the model ofthe object comprises determining a Delaunay triangulation of the object.3. The method of claim 1, wherein the structures internal to the outlineinclude one or more of circles, cylinders, or polygons.
 4. The method ofclaim 1, wherein the instructions to display the model include one ormore of a time to display given structures, a time to fill the givenstructures, a time to reveal a representation of the object, and a timeto fade the representation of the object.
 5. The method of claim 1,wherein the instructions to display the model include a speed to renderthe given structures of the model.
 6. The method of claim 1, furthercomprising; determining an edge gradient value for pixels of the image;and selecting pixels representative of the object that have a respectiveedge gradient value above a threshold.
 7. The method of claim 6, furthercomprising: determining the approximate outline of the object andstructures internal to the outline as being oriented based on theselected pixels being coupling points between the structures.
 8. Themethod of claim 6, wherein the image includes the object and a processedbackground, and wherein the processed background has pixels of a commoncolor, and wherein the method further comprises: determining pixelshaving the common color; sampling pixels in the image other than thepixels having the common color; and determining the edge gradient valuefor the sampled pixels of the image.
 9. The method of claim 6, furthercomprising: sorting the pixels in an order based on vertical position ofthe pixels in the image; and providing instructions to display the modelin the incremental manner so as to render the given structures of themodel over time based on the vertical position from a bottom to a top ofthe model.
 10. The method of claim 6, further comprising determining acolor of the structures based on a color of the selected pixels ofcoupling points between the structures or based on a combination ofrespective colors of the selected pixels of coupling points between thestructures.
 11. The method of claim 6, further comprising determining asize of given structures based on an apparent distance of a portion ofthe object represented by the selected pixel to a viewing location. 12.The method of claim 6, further comprising: providing instructions todisplay the model in an incremental manner so as to render the givenstructures of the model in focus based on an apparent distance of aportion of the object represented by the selected pixel to a viewinglocation.
 13. The method of claim 1, further comprising: revealing, inthe incremental manner, a portion of the image of the objectcorresponding to a given structure associated with one or more pixels ofthe portion of the image so as to display the image of the object. 14.The method of claim 1, further comprising: selecting a first frame ofthe 3D object data model as the image of the object so as to render adisplay resembling the object of the 3D object data model beingdownloaded and provide a preview of the 3D object data model.
 15. Themethod of claim 14, wherein determining the model of the objectcomprises determining the model of the object while downloading the 3Dobject data model, and the method further comprises: providinginstructions to display the model of the object in the incrementalmanner during the downloading so as to provide a representation of theobject being constructed over time.
 16. A non-transitory computerreadable medium having stored therein instructions, that when executedby a computing device, cause the computing device to perform functionscomprising: downloading a three-dimensional (3D) object data model of anobject; selecting a given frame of the 3D object data model as an imageof the object; determining a model of the object including anapproximate outline of the object and structures internal to theoutline; and providing instructions to display the model in anincremental manner during the downloading of the 3D object data model soas to render given structures of the model over time during thedownloading of the 3D object data model, wherein a duration of displayof the model is about an amount of time to download the 3D object datamodel and a portion of the model displayed is indicative of a progressof the download of the 3D object data model, and wherein the display ofthe model incrementally resembles geometry and texture attributes of therendered given structures to represent the image of the object in thegiven frame.
 17. The non-transitory computer readable medium of claim16, wherein the functions further comprise: providing instructions todisplay the model that resembles the object of the 3D object data modelbeing downloaded so as to provide a preview of the 3D object data model;and revealing, in the incremental manner, a portion of the image of theobject corresponding to a given structure associated with one or morepixels of the portion of the image so as to display the image of theobject.
 18. A device comprising: one or more processors; and datastorage configured to store instructions executable by the one or moreprocessors to cause the device to: download a three-dimensional (3D)object data model of an object; selecting a given frame of the 3D objectdata model as an image of the object; determine a model of the objectincluding an approximate outline of the object and structures internalto the outline; and providing instructions to display the model in anincremental manner during the downloading of the 3D object data model soas to render given structures of the model over time during thedownloading of the 3D object data model, wherein a duration of displayof the model is about an amount of time to download the 3D object datamodel and a portion of the model displayed is indicative of a progressof the download of the 3D object data model, and wherein the display ofthe model incrementally resembles geometry and texture attributes of therendered given structures to represent the image of the object in thegiven frame.
 19. The device of claim 18, wherein the instructions arefurther executable by the one or more processors to cause the device to:select a first frame of the 3D object data model as the image of theobject so as to render a display resembling the object of the 3D objectdata model being downloaded and provide a preview of the 3D object datamodel.
 20. The device of claim 18, wherein the instructions are furtherexecutable by the one or more processors to cause the device to: sortthe pixels in an order based on vertical position of the pixels in theimage; and provide instructions to display the model in the incrementalmanner so as to render the given structures of the model over time basedon the vertical position from a bottom to a top of the model.